var inquirer = require('inquirer');
inquirer
.prompt([
	{
		type: 'list',
		name: 'component_name',
		message: '组件名称?',
		choices: [{
			value: 'value',
			name: '选项',
			checked: true
		},
		{
			value: 'value',
			name: '选项',
			checked: false
		}
		]
	},
	{
		type: 'checkbox',
		name: 'cb_zhouqi',
		message: '生命周期钩子函数?',
		choices: [{
			value: 'created',
			name: '创建完成',
			checked: true
		},
		{
			value: 'mounted',
			name: '绑定完成',
			checked: false
		}
	
		]
	}

])
.then(answers => {
console.log(answers)
});